package com.good.msgsys.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;

/**
 * 著作实体类
 *
 * @author junlong
 * @date 2021/1/4 18:41
 */
@Entity
@Table(name = "opus")
@ApiModel("著作实体Opus")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Opus implements Serializable {
    @Id
    @ApiModelProperty("著作id")
    private String id;
    @ApiModelProperty("著作名称")
    private String name;
    @ApiModelProperty("ISBN")
    private String isbn;
    @ApiModelProperty("出版社")
    private String publisher;
    @ApiModelProperty("著作类型：0期刊，1教材")
    private Integer type;
    @ApiModelProperty("出版时间")
    private Date publishTime;
    @ApiModelProperty("申请人(当前用户)id")
    @Column(name = "applicant_id")
    private String userId;
    @ApiModelProperty("作者ids")
    private String ids;
    @ApiModelProperty("备注")
    private String remark;
    @ApiModelProperty("著作状态：0未提交审核，1已经提交审核，2著作审核通过，3著作审核不通过")
    private Integer state;
}
